﻿<include file="App/Home/Iphone/Public/header.html" />
<script>

$(document).ready(function() {

		$('#personal').addClass('a-on');
	
})
</script>
<style>
	.ul1 li {
    font-size: 0.24rem;
    border-bottom: 1px solid #dddddd;
    height: auto;
}
</style>
<div id="main">
	<div class="main_box">
		<div class="raise right clearfix">
			<link rel="stylesheet" href="https://ybh-static.oss-cn-hangzhou.aliyuncs.com/mobile/css/layer.css?v=20170607" />
			<div class="strip"></div>
			<p class="p1" style="margin-left: 0.3rem;">账户资产总计： <span style="color:#f60;">{$member.count|default=0.00}</span> CNY</p>
			<p class="p2">
				<span>名称</span>
				<span>可用</span>
				<span>冻结</span>
			</p>
			<ul class="ul1">
				<li>
					<strong style="width:1.4rem;display:inline-block;">人民币</strong>
					<span class="span1" style="width: 2rem;padding-left: 0.25rem;">{$member.rmb|default=0.00}</span>
					<span class="span2" style="margin-left: 0;width: 2rem;padding-left: 0.3rem;">{$member.forzen_rmb|default=0.00}</span>
					<i class="bg-click yes1" style="width: 20px;"></i>
					<p class="showAndhide" style="display: none">
						<a href="{:U('User/pay')}"><span class="icon_cz"></span>充值</a>

						<a href="{:U('User/draw')}"><span class="icon_tb"></span>提现</a>

					<div style="clear: both;"></div>

					</p>
				</li>
				<volist name='currency_user' id='vo' > 	
				<li>
					<strong style="width:1.4rem">{$vo.currency_mark|default='--'}</strong>
					<span class="span1" style="width: 2rem;padding-left: 0.25rem;">{$vo.num|default=0.00}</span>
					<span class="span2" style="margin-left: 0;width: 2rem;padding-left: 0.3rem;">{$vo.forzen_num|default=0.00}</span>
					<i class="bg-click yes1" style="width: 20px;"></i>
					<p class="showAndhide"  style="display: none">
						<a onclick="aaa()"><span class="icon_cz"></span>充币</a>
						<a onclick="aaa()"><span class="icon_tb"></span>提币</a>
						<a href="{:U('Orders/index',array('currency'=>$vo['currency_mark']))}"><span class="icon_jy"></span>去交易</a>
					<div style="clear: both;"></div>
					</p>
				</li>
				</volist> 	
			</ul>
			<script>
		function aaa(){
		layer.msg("功能暂未开放");
		}
		</script>
</body>
</html>
<script type="text/javascript" src="__PUBLIC__/Iphone/js/zepto.js"></script>
<script src="__PUBLIC__/Iphone/js/fastclick.js"></script>
<script src="__PUBLIC__/Iphone/js/public.js"></script>
<script>
    $(function(){
        $("#layui-hide").click(function(){
            $("#layui-m-layer0").hide();
        });
    })
</script>
<script type="text/javascript">
    $(function(){
        FastClick.attach(document.body);
        $(".showAndhide").hide();
        $(".ul1 li").click(function(){
            var a_lenght   = $(this).children(".showAndhide");
            var s_lenght_s = a_lenght.children("a").length;
            if(s_lenght_s == 2){
                $(".ul1 li .showAndhide a").css("width","3.71rem");
            }
            else{
                $(".ul1 li .showAndhide a").css("width","2.47rem");
            }

            if($(this).children("i").hasClass('bg-click')){

                $(".ul1 li .showAndhide").hide();
                $(".ul1 li i").removeClass('bg-click1').addClass('bg-click');
                $(this).children("i").removeClass('bg-click').addClass('bg-click1');
                $(this).children("i").siblings('.showAndhide').show();
                // $(this).children('em').text("成功").css({"color":"#33cc00"})
            }else{
                $(this).children("i").removeClass('bg-click1').addClass('bg-click');
                $(this).children("i").siblings('.showAndhide').hide();
                // $(this).children('em').text("等待").css({"color":"#666"})
            }
//                if($(this).children('.showAndhide').show()){
//                        $(this).siblings().children('.showAndhide').hide();
//                }else{
//                        $(this).siblings().children('.showAndhide').show();
//                        $(this).children('.showAndhide').toggle();
//                }
        });
    })
    //	(function(){
    //		$(".showAndhide").hide()
    //		$(".ul1 li").on('tap',function(){
    //                     var a_lenght   = $(this).children(".showAndhide");
    //                     var s_lenght_s = a_lenght.children("a").length;
    //                        if(s_lenght_s == 2){
    //                             $(".ul1 li .showAndhide a").css("width","3.71rem");
    //                        }
    //                        else{
    //                             $(".ul1 li .showAndhide a").css("width","2.47rem");
    //                        }
    //
    //			if($(this).children('.showAndhide').show()){
    //				$(this).siblings().children('.showAndhide').hide()
    //			}else{
    //				$(this).siblings().children('.showAndhide').show()
    //				$(this).children('.showAndhide').toggle()
    //			}
    //		})
    //	})(Zepto)
</script>
<script  type="text/javascript" src="__PUBLIC__/Iphone/js/layer/layer.min.js"></script>
<script>
    function getInterest(coin)
    {
        if (coin == 'abc' || coin == 'trmb') {
            alert('请等待系统自动领取利息');
            return false;
        }
        $.post('/user_exchange/getInterest/coin/' + coin,
            function(d){
                if(d.status){
                    alert('领取成功，已加到您的余额');
                    location.href='/user_index/';
                }else{
                    alert(d.msg);
                }
            }, 'json');
    }
    function showTips(id,msg){
        var tips = layer.tips(msg, id, {
            style: ['background-color:#fff8db;color:#000; margin-left:-15px; padding:10px;', '#fff8db'],
            guide:0,
            minWidth:250
        });
        $(id).on('mouseout', function(){
            layer.close(tips);
        });
    }
    function transfer(id)
    {
        if (confirm("确认转投第五次增发配股，您将获得1.1倍的配股权。需等众筹完成后，根据配股比例分发八宝池的股份。")) {
            $.post('/user_index/transfer/id/' + id,
                function(d){
                    if(d.status){
                        alert('转投成功！');
                        location.href='/user_index/';
                    }else{
                        alert(d.msg);
                    }
                }, 'json');
        }else{
            return false;
        }
    }
</script>

<script>
    console.log("%c 前端开发 %c www.yuanbao.com %c 元宝小贷", "color:red","","color:orange;font-weight:bold");
    function showTips(id,msg){
        var tips = layer.tips(msg, id, {
            style: ['background-color:#fff8db;color:#000; margin-left:-15px; padding:10px;', '#fff8db'],
            guide:0,
            minWidth:250
        });
        $(id).on('mouseout', function(){
            layer.close(tips);
        });
    }
</script>

<script>
    $(function(){
        $.get('/user_exchange/ajaxIpAuth/', function(data){
        },'json')
    })

    $('.closeall').click(function(){
        $('#freeze_i').hide();
    })
</script>
</div>
<div class="clear"></div>
</div>
</div>
<!-- <footer class="footer">
	<div class="footer_kefu_news">
		<a href="tel:4008367667"><i></i>4008-367-667</a>
		<a><i></i>ybw@yuanbao.com</a>
	</div>
	<p>
        <span>
            <a href="javascript:void(0);" class="a1" id="phone">手机版</a>
            <i>|</i>
            <a href="javascript:void(0);" class="a2" id="window">电脑版</a>
            <i>|</i>
            <a href="/Assist/assist" class="a3">帮助中心</a>
        </span>
	</p>
   <p >
                <span>
                <a href="javascript:void(0);" class="a1" id="phone">手机版</a>
                    <i>|</i>
                    <a href="javascript:void(0);" class="a2" id="window">电脑版</a>
                </span>
                        <span>
                    <a href="#"><em>(UID:554648)</em></a>
                    <i>|</i>
                    <a href="/user/logout">退出</a>
                </span>
                </p>

	<div>
		Copyright2013-2016 元宝网
	</div>
</footer> -->
<!--<script>
    //域名跳转
    $('#phone').click(function(){
        location.reload();
    })
    $('#window').click(function(){
        var mode = 1;
        $.post('/ajax/changemode',{mode:mode},function(){
            window.location.href = 'http://www.yuanbao.com/coins?notice=1';
        })
    })
</script>-->
<script>
	/*$('#phone').click(function(){
	 $.post('/ajax/changemode',{mode:0},function(){
	 location.reload();
	 })
	 })*/
    $('#window').click(function(){
        $.post('/ajax/changemode',{mode:1},function(){
            window.location.href = 'https://www.yuanbao.com/coins?notice=1';
        })
    })
</script>